package com.wxxymaker.model.table;

import com.wxxymaker.model.entity.Shop;
import com.wxxymaker.model.entity.Stage;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Soft
 * @Date: 2018/5/19 14:29
 * @Desc: 阶段下某公司星级计数统计表
 */
public class StageShopStarTable {
    // 当前阶段
    private Stage stage;

    // 当前阶段下所有公司的星级计数信息
    private List<ShopStar> shopStars = new ArrayList<>();

    public Stage getStage() {
        return stage;
    }

    public void setStage(Stage stage) {
        this.stage = stage;
    }

    public List<ShopStar> getShopStars() {
        return shopStars;
    }

    public void setShopStars(List<ShopStar> shopStars) {
        this.shopStars = shopStars;
    }

    public static class ShopStar {
        private Shop shop;

        // 总评分数
        private double score;

        private long[] stars;

        public Shop getShop() {
            return shop;
        }

        public void setShop(Shop shop) {
            this.shop = shop;
        }

        public double getScore() {
            return score;
        }

        public void setScore(double score) {
            this.score = score;
        }

        public long[] getStars() {
            return stars;
        }

        public void setStars(long[] stars) {
            this.stars = stars;
        }
    }
}